﻿<Window x:Class="Hp.Vertica.Client.VerticaConnection"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Connect to Vertica" Height="180" Width="300" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow">
    <Grid x:Name="panelMain">
        <Grid.RowDefinitions>
            <RowDefinition Height="2"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <ProgressBar Grid.Row="0" x:Name="progressBar" Visibility="Collapsed" IsIndeterminate="True"></ProgressBar>
        <Grid Margin="5" x:Name="panelForm" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="2*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Label Grid.Column="0" Grid.Row="0">Host :</Label>
            <TextBox Grid.Column="1" Grid.Row="0" x:Name="txtHost" VerticalAlignment="Center"/>
            <Label Grid.Column="0" Grid.Row="1">User :</Label>
            <TextBox Grid.Column="1" Grid.Row="1" x:Name="txtUser" VerticalAlignment="Center"></TextBox>
            <Label Grid.Column="0" Grid.Row="2">Password :</Label>
            <PasswordBox Grid.Column="1" Grid.Row="2" x:Name="txtPassword" VerticalAlignment="Center"></PasswordBox>
            <Label Grid.Column="0" Grid.Row="3">Database :</Label>
            <TextBox Grid.Column="1" Grid.Row="3" x:Name="txtDatabase" VerticalAlignment="Center"></TextBox>
        </Grid>
        <StackPanel Grid.Row="2" Orientation="Horizontal" FlowDirection="RightToLeft" Margin="0,0,5,5">
            <Button x:Name="btnSave" HorizontalAlignment="Right" Width="80" IsDefault="True">Connect</Button>
            <Button x:Name="btnCancel" HorizontalAlignment="Right" Width="80" IsDefault="True" Visibility="{Binding ElementName=progressBar, Path=Visibility}">Cancel</Button>
        </StackPanel>

    </Grid>

</Window>
